package com.shanghai.shanghaielectric.UI.chart.widget;

import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.view.View;

import java.util.ArrayList;
import java.util.List;


public class ChartView extends View {



    //总宽
    private float mWidth;
    //总高
    private float mHeight;

    private List<ChartEntity> mChartEntitys;

    public ChartView(Context context, AttributeSet attrs) {
        super(context, attrs);
        //关闭硬件加速
        setLayerType(View.LAYER_TYPE_SOFTWARE, null);
        mChartEntitys = new ArrayList<ChartEntity>();
    }

    @Override
    protected void onDraw(Canvas canvas) {
        super.onDraw(canvas);

    }

    public void setData(List<ChartEntity> chartEntitys) {
        if (chartEntitys == null) {
            return;
        }


    }
//


}
